package com.quick.develop.flowable.constant;

/**
 * @author junyuan.liu
 * @description:  流程通用常量
 * @date 2022/4/29 13:27
 */
public class BpmConstants {

    public static final String  BPMN_FILE_SUFFIX = ".bpmn";
    public static final String PROCESS_INSTANCE_ID = "processInstanceId";
    public static final String BUSINESS_KEY = "businessKey";
    public static final String ROOT_BUSINESS_KEY = "rootBusinessKey";

    public static final String BUSINESS_TYPE = "businessType";
    public static final String PROCESS_DEFINITION_ID = "processDefinitionId";
    public static final String PROCESS_DEFINITION_NAME = "processDefinitionName";
    public static final String PROCESS_DEFINITION_KEY = "processDefinitionKey";
    public static final String DEPLOYMENT_ID = "deploymentId";
    public static final String PROCESS_NAME = "processName";
    public static final String INITIATOR = "INITIATOR";
    public static final String INITIATOR_NAME = "INITIATOR_NAME";
    public static final String ASSIGNEE = "assignee";
    public static final String ASSIGNEE_LIST = "assigneeList";
    public static final String ASSIGNEE_FORM_SOURCE = "formSource";
    public static final String CANDIDATE = "candidate";
    public static final String CANDIDATE_USER = "candidateUser";
    public static final String CANDIDATE_USERS = "candidateUsers";
    public static final String CANDIDATE_GROUP = "candidateGroup";
    public static final String CATEGORY = "category";
    public static final String START_USER = "startUser";
    public static final String START_USER_ID = "startUserId";
    public static final String START_USER_CODE = "startUserCode";
    public static final String START_USER_NAME = "startUserName";
    public static final String USER_ID = "userId";
    public static final String USER_NAME = "userName";
    public static final String TYPE_ID = "typeId";
    public static final String TYPE_KEY = "typeKey";
    public static final String SUB_PROCESS_START_USER = "subStartUser";
    public static final String EXPRESSION = "EL";
    public final static String CC = "CC";
    public static final String ADD_CC_TO= "AddCcTo";

    /**********流程节点类型  start *********/
    public static final String CALL_ACTIVITY = "callActivity";
    public static final String SEQUENCE_FLOW = "sequenceFlow";
    public static final String INCLUSIVE_GATEWAY = "inclusiveGateway";
    public static final String EXCLUSIVE_GATEWAY = "exclusiveGateway";
    public static final String PARALLEL_GATEWAY = "parallelGateway";
    public static final String START_EVENT = "startEvent";
    public static final String END_EVENT = "endEvent";
    public static final String USER_TASK = "userTask";
    /**********流程节点类型  END *********/

    /*********流程操作类型，主要用于标识 退回，撤回*********/
    public static final String EXECUTE_CMD = "executeCmd";
    public static final String WITHDRAW_USER = "withdrawUser";
    public static final String COMMENT_SEPARATOR = "_|_";
    public static final String SPONSORED = "sponsored";
    public static final String ASSISTANCE = "assistance";
    public static final String READ = "read";
    public static final String BPM_PART = "bpmPart";
    public static final String NR_OF_INSTANCES = "nrOfInstances";
    public static final String NR_OF_ACTIVE_INSTANCES = "nrOfActiveInstances";
    public static final String NR_OF_COMPLETED_INSTANCES = "nrOfCompletedInstances";
    public static final String MULTI_RESULT = "MultiResult";
    public static final String GO_THROUGH = "goThrough";
    public static final String AUTO_ENTRUST = "autoEntrust";
    public static final String ENTRUST_ASSIGNEE = "entrustAssignee";
    public static final String ENTRUST_OWNER = "entrustOwner";
    public static final String ENTRUST_RELEASE = "entrustRelease";
    public static final String ENTRUST_IGNORE = "entrustIgnore";
    public static final String ADMIN_ASSIGN = "adminAssign";
    public static final String ADMIN_UN_CLAIM = "adminUnClaim";
    public static final String ADMIN_STOP = "adminStop";
    public static final String AUTO_READ = "autoRead";

    /*一键委托标识*/
    public static final String ALL_PROCESS = "ALL_PROCESS";
    public static final String BUSINESS_CODE = "formCode";
    public static final String DTS_TASK = "DTS_TASK";
    public static final String CANCEL_AUTO_COMPLETE = "cancelAutoCompete";

    public static final String PROCESS_NAME_SP = "PN:";
    public static final String COMMENT_SP = "CM:";
    public static final String START_USER_SP = "ST:";

    public static final String ADD_COMMENT = "AddComment";
}
